Filter hook 'rest_query_var-{$key}'

in WP Core File wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php at line 1134

Description

Filters the query_vars used in get_items() for the constructed query. The dynamic portion of the hook name, `$key`, refers to the query_var key.

Occurrences

Filename Line Number
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php 1134
wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php 537

Parameters

Type Name Description
string $value The query_var value.

PHP Doc

/**
			 * Filters the query_vars used in get_items() for the constructed query.
			 *
			 * The dynamic portion of the hook name, `$key`, refers to the query_var key.
			 *
			 * @since 4.7.0
			 *
			 * @param string $value The query_var value.
			 */